<template>
  <div id='aside'>
    <el-container>
      <el-aside width="200px">
        <el-menu default-active="/home/information/administration" class="el-menu-vertical-demo" @open="handleOpen" @close="handleClose" :router="true" background-color="#F6F9FE" text-color="#506480" active-text-color="#488CEE">

          <el-menu-item index="/home/information/administration">
            <i class="el-icon-menu"></i>
            <span slot="title">公告管理</span>
          </el-menu-item>

          <el-menu-item index="/home/information/notice">
            <i class="el-icon-setting"></i>
            <span slot="title">公告通知</span>
          </el-menu-item>
        </el-menu>
      </el-aside>
      <el-main>
        <router-view></router-view>
      </el-main>
    </el-container>

  </div>
</template>

<script>
export default {
  data() {
    return {
      opens: ['1']
    }
  },
  methods: {
    handleOpen(key, keyPath) {
      console.log(key, keyPath);
    },
    handleClose(key, keyPath) {
      console.log(key, keyPath);
    }
  }
}
</script>

<style scoped>
.el-menu-item:hover {
  background: #e4eefc !important;
}
.el-aside,
.el-container,
#app > div,
body {
  height: 100%;
}
.el-aside {
  background: #f6f9fe;
}
#aside {
  height: 100%;
}
.el-main {
  background-color: #f2f2f2;
}
</style>